<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>新闻详情</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f4f4f4;
      margin: 0;
      padding: 20px;
    }
    .news-detail-container {
      background-color: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    .news-detail-container h2 {
      margin-bottom: 20px;
      color: #333;
    }
    .news-detail-container p {
      margin: 10px 0;
      color: #666;
    }
    .news-detail-container a {
      display: inline-block;
      margin-top: 20px;
      padding: 10px 20px;
      background-color: #007bff;
      border: none;
      border-radius: 4px;
      color: #fff;
      font-size: 16px;
      text-decoration: none;
      cursor: pointer;
    }
    .news-detail-container a:hover {
      background-color: #0056b3;
    }
  </style>
</head>
<body>
<div class="news-detail-container">
  <h2 th:text="${news.title}"></h2>
  <p th:text="${news.content}"></p>
  <p>来源: <span th:text="${news.source}"></span></p>
  <p>创建时间: <span th:text="${news.createTime}"></span></p>
  <a href="/news">返回新闻列表</a>
</div>
</body>
</html>